import { IsNumber, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UpdatePsdDto {
  @ApiProperty({
    description: '用户id',
    required: true,
  })
  @IsNumber()
  user_id: number;

  @ApiProperty({
    description: '密码',
    required: true,
  })
  @IsString()
  password: string;

  @ApiProperty({
    description: '确认密码',
    required: true,
  })
  @IsString()
  confirmPsd: string;
}
